package org.jsola.hr.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.jsola.core.Page;
import org.jsola.core.Result;
import org.jsola.hr.dto.EmpAttendanceAddDTO;
import org.jsola.hr.dto.EmpAttendanceUpdateDTO;
import org.jsola.hr.query.EmpAttendanceQuery;
import org.jsola.hr.vo.EmpAttendanceListVO;
import org.jsola.hr.vo.EmpAttendanceVO;

import java.util.List;

/**
 * 员工考勤表
 *
 * @author zhr
 */
@Api(tags = "hr-员工考勤表")
public interface IEmpAttendanceControllerAPI {

    /**
     * 新增员工考勤表
     * @param empAttendanceAddDTO 员工考勤表新增实体
     * @return 员工考勤表展示对象
     */
    @ApiOperation(value = "新增员工考勤表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empAttendanceAddDTO", dataType = "EmpAttendanceAddDTO", value = "新增员工考勤表", paramType = "body")
    })
    Result<EmpAttendanceVO> save(EmpAttendanceAddDTO empAttendanceAddDTO);


    /**
     * 修改员工考勤表
     * @param empAttendanceUpdateDTO 员工考勤表
     * @return 更新数量
     */
    @ApiOperation(value = "修改员工考勤表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empAttendanceUpdateDTO", dataType = "EmpAttendanceUpdateDTO", value = "修改员工考勤表", paramType = "body")
    })
    Result<Integer> update(EmpAttendanceUpdateDTO empAttendanceUpdateDTO);




    /**
     * 删除单个员工考勤表，彻底删除
     * @param empAttendanceId 员工考勤表id
     * @return 删除数量
     */
    @ApiOperation(value="删除单个员工考勤表，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empAttendanceId", dataType = "Long", value = "员工考勤表id", paramType = "path")
    })
    Result<Integer> delete(Long empAttendanceId);


    /**
     * 批量删除员工考勤表，彻底删除
     * @param empAttendanceIds 员工考勤表id集合
     * @return 删除数量
     */
    @ApiOperation(value = "批量删除员工考勤表，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empAttendanceIds", dataType = "Long[]", value = "员工考勤表id数组", paramType = "body" ,allowMultiple = true)
    })
    Result<Integer> deleteBatch(Long[] empAttendanceIds);


    /**
     * 根据员工考勤表id查询员工考勤表详情
     * @param empAttendanceId 员工考勤表id
     * @return 员工考勤表详情
     */
    @ApiOperation(value="根据员工考勤表id查询员工考勤表详情")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empAttendanceId", dataType = "Long", value = "员工考勤表id", paramType = "path")
    })
    Result<EmpAttendanceVO> findById(Long empAttendanceId);


    /**
     * 查询员工考勤表
     * @param empAttendanceQuery 员工考勤表查询参数
     * @return page
     */
    @ApiOperation(value="查询员工考勤表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empAttendanceQuery", dataType = "EmpAttendanceQuery", value = "员工考勤表查询参数", paramType = "query")
    })
    Result<List<EmpAttendanceListVO>> listAll(EmpAttendanceQuery empAttendanceQuery);


     /**
     * 分页查询员工考勤表
     * @param empAttendanceQuery 员工考勤表查询参数
     * @return page
     */
    @ApiOperation(value="分页查询员工考勤表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empAttendanceQuery", dataType = "EmpAttendanceQuery", value = "员工考勤表查询参数", paramType = "query")
    })
    Result<Page<EmpAttendanceListVO>> page(EmpAttendanceQuery empAttendanceQuery);




}

